import App from './App'
import routeJump from "./core/routeJump.js"
import utils from './core/utils.js'
import switchs from './core/switch.js'
import lkTopbar from "components/lk-topbar/index.vue"

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false;


// 全局变量
Vue.prototype.$utils = utils;
Vue.prototype.$routeJump = routeJump;
Vue.prototype.$switch = switchs;

/**
 * 公共组件
 * 
 */
Vue.component('lk-topbar',lkTopbar)


App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif